import { createRequest } from '../index'

// 详情
export const studentLearningFindById = id => {
  return createRequest({
    url: `/student/learning/findById/${id}`,
    method: 'get',
  })
}

export const studentLearningStudentExit = id => {
  return createRequest({
    url: `/student/learning/student/exit/${id}`,
    method: 'get',
  })
}

// 任务分页查询
export const studentLearningTaskPage = data => {
  return createRequest({
    url: `/student/learningTask/page`,
    method: 'get',
    params: data
  })
}

// 删除任务文件
export const learningTaskDelFile = id => {
  return createRequest({
    url: `/student/learningTask/delFile/${id}`,
    method: 'post',
  })
}

